import request from '@/utils/request'

// 查询定子查询列表
export function listCore(query) {
  return request({
    url: '/business/core/list',
    method: 'get',
    params: query
  })
}

// 查询定子查询详细
export function getCore(id) {
  return request({
    url: '/business/core/' + id,
    method: 'get'
  })
}

// 新增定子查询
export function addCore(data) {
  return request({
    url: '/business/core',
    method: 'post',
    data: data
  })
}

// 修改定子查询
export function updateCore(data) {
  return request({
    url: '/business/core',
    method: 'put',
    data: data
  })
}

// 删除定子查询
export function delCore(id) {
  return request({
    url: '/business/core/' + id,
    method: 'delete'
  })
}
